<template>
  <div class="search">
    <div class="search-input" @tap="tapSearch">
      <icon class="search-icon" type="search" size="16"></icon>搜索
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    tapSearch() {
      wx.navigateTo({
        url: '/pages/search/main'
      }); 
    }
  }
};
</script>
<style lang="scss" scoped>
.search {
  background: #ff2d4a;
  padding: 16rpx 15rpx;
  .search-input {
    background: #fff;
    height: 60rpx;
    border-radius: 10rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32rpx;
    color: #bbb;
    .search-icon {
      margin-right: 20rpx;
    }
  }
}
</style>
